package za.org.jcicada.genss.sensor.impl;

import java.util.Set;

import za.org.jcicada.genss.sensor.ISamplingStrategy;
import za.org.jcicada.genss.sensor.ISensorObserver;
import za.org.jcicada.genss.sensor.ISensorSubject;
import za.org.jcicada.genss.sensor.SensorURN;

public class StubSensorSubject implements ISensorSubject {
	
	public ISensorObserver observer;
	public Set<SensorURN> sensorURNs;
	public ISamplingStrategy strategy;

	public void informDisconnect(ISensorObserver observer) {
		this.observer = observer;
	}

	public void requestAttach(ISensorObserver observer, Set<SensorURN> sensorURNs) {
		this.observer = observer;
		this.sensorURNs = sensorURNs;
	}

	public void requestDetach(ISensorObserver observer, Set<SensorURN> sensorURNs) {
		this.observer = observer;
		this.sensorURNs = sensorURNs;
	}

	public void requestSensorSet(ISensorObserver observer) {
		this.observer = observer;
	}

	public void requestSetSamplingStrategy(ISensorObserver observer, ISamplingStrategy strategy) {
		this.observer = observer;
		this.strategy = strategy;
	}

}
